package com.qianyu.core.entity.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.qianyu.core.entity.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 链接活动
 *
 * @TableName tb_link_act
 */
@Data
@ApiModel(value = "链接活动")
@TableName("tb_link_act")
@NoArgsConstructor
@AllArgsConstructor
public class LinkAct extends BaseBean {
    /**
     * 用户id
     */
    @NotNull(message = "[用户id]不能为空")
    @ApiModelProperty("用户id")
    private Long userId;
    /**
     * 活动id
     */
    @NotNull(message = "[活动id]不能为空")
    @ApiModelProperty("活动id")
    private Integer actId;
    /**
     * 活动名
     */
    @NotBlank(message = "[活动名]不能为空")
    @Size(max = 255, message = "编码长度不能超过255")
    @ApiModelProperty("活动名")
    private String actName;
    /**
     * 链接id
     */
    @NotNull(message = "[链接id]不能为空")
    @ApiModelProperty("链接id")
    private Long linkId;
    /**
     * Appid
     */
    @NotBlank(message = "[Appid]不能为空")
    @Size(max = 32, message = "编码长度不能超过32")
    @ApiModelProperty("Appid")
    private String appid;
    /**
     * 状态:0=关闭,1=正常,
     */
    @NotNull(message = "[状态:0=关闭,1=正常,]不能为空")
    @ApiModelProperty("状态:0=关闭,1=正常,")
    private Integer status;
    /**
     * isSSOSend:0=False,1=True
     */
    @NotNull(message = "[isSSOSend:0=False,1=True]不能为空")
    @ApiModelProperty("isSSOSend:0=False,1=True")
    private Integer isSso;

}
